From 246fd655e70dfe6775895a90a89bcdcd3814598d Mon Sep 17 00:00:00 2001 From: Joseph Marrero Corchado Date: Wed, 24 Jun 2026 11:20:21 -0400 Subject: [PATCH] ci/prow: Use RPMs with dnf instead of raw file overlay The builder and coreos-assembler images may ship different library versions (e.g. gpgme), causing soname mismatches at runtime. Use RPM overrides for cosa and dnf for the container itself. --- ci/prow/Dockerfile | 38 ++++++++++++++++++++++++++++++-------- ci/prow/fcos-e2e.sh | 7 ++++--- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/ci/prow/Dockerfile b/ci/prow/Dockerfile index 40494256..4df04466 100644 --- a/ci/prow/Dockerfile +++ b/ci/prow/Dockerfile @@ -2,20 +2,42 @@ FROM quay.io/coreos-assembler/fcos-buildroot:testing-devel as builder WORKDIR /src COPY . . RUN ./ci/build.sh -RUN make -C target/c install DESTDIR=/cosa/component-install RUN make -C tests/kolainst RUN make -C tests/kolainst install DESTDIR=/cosa/component-tests -# Uncomment this to fake a build to test the code below -#RUN mkdir -p /cosa/component-install/usr/bin && echo foo > /cosa/component-install/usr/bin/foo + +# Build RPMs inside the cosa base image so they link against its libraries. +# The buildroot (Fedora N+1) and cosa (Fedora N) may ship different sonames. +FROM quay.io/coreos-assembler/coreos-assembler:latest as rpmbuild +USER root +COPY --from=builder /src /src +WORKDIR /src +RUN dnf -y install /usr/bin/rpmbuild gcc +RUN <> src/config/image.yaml -- 2.39.5